package com.sparrow.example_message.base.resp;

import com.baidu.bjf.remoting.protobuf.annotation.Package;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.sparrow.example_message.PacketId;
import com.sparrow.socket.anno.Packet;

import java.util.Map;

@Package("com.sparrow.example_message.proto")
@ProtobufClass(description = "返回登录角色")
@Packet(msgId = PacketId.Base.RESP_LOGIN_PACKET)
public class RespLoginPacket {

    @Protobuf(description = "玩家id")
    private long playerId;
    @Protobuf(description = "玩家名字")
    private String name;
    @Protobuf(description = "玩家等级")
    private int level;
    @Protobuf(description = "玩家经验")
    private int exp;
    @Protobuf(description = "战斗力")
    private long fight;
    @Protobuf(description = "场景Id")
    private int sceneId;
    @Protobuf(description = "属性")
    private Map<Integer, Long> attrMap;
    @Protobuf(description = "desc")
    private int hp;
    @Protobuf(description = "desc")
    private int maxHp;

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public void setFight(long fight) {
        this.fight = fight;
    }

    public long getFight() {
        return fight;
    }

    public void setSceneId(int sceneId) {
        this.sceneId = sceneId;
    }

    public int getSceneId() {
        return sceneId;
    }

    public Map<Integer, Long> getAttrMap() {
        return attrMap;
    }

    public void setAttrMap(Map<Integer, Long> attrMap) {
        this.attrMap = attrMap;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public int getExp() {
        return exp;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getMaxHp() {
        return maxHp;
    }

    public void setMaxHp(int maxHp) {
        this.maxHp = maxHp;
    }
}
